package com.mdxx.common;

import java.io.Serializable;

/**
 * Created by MD-01 on 2017/5/3.
 */
public class CommonResult<T> implements Serializable {
    /**
     * 0:   成功
     * 1:   业务逻辑错误
     * 2:   token过期
     * 3:   请求超时
     * 4:   请求逻辑错误(解密失败,请求头参数不合法)
     * 5:   服务器异常
     */
    private Integer code;
    private String sucMsg;
    private String errMsg;
    private T data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getSucMsg() {
        return sucMsg;
    }

    public void setSucMsg(String sucMsg) {
        this.sucMsg = sucMsg;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
